package com.yuand.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author yuandong
 * @date 2021/7/23 11:42
 */
@Configuration
public class ResourceConfig  implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry)
    {
        /** 静态资源映射 */
        registry.addResourceHandler("/map/**").addResourceLocations("file:L:/BigeMap_lixian/淄博市_电子地图/瓦片_谷歌/");
    }
}
